package Builder;

public class Client {
    public static void main(String[] args) {
        MealBuilder mb = (MealBuilder) XMLUtil.getBean();
        KFCWaiter waiter = new KFCWaiter();

        waiter.setMealBuilder(mb);;
        Meal meal = waiter.construct();

        System.out.println("套餐为:" + meal.getFood().toString() + ";" + meal.getRefresh().toString());
        meal.getFood().eat();
        meal.getRefresh().drink();
    }
}
